﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="searchresv.aspx.cs" Inherits="EZCRS.HCMS.Web.manage.hotel.searchresv" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
      <title></title>
        <link rel='stylesheet' href='../../Style/main.css'/>
      <script src="../../Common/base_grid.js" language="javascript" type="text/javascript"></script>  
    <link rel="stylesheet" type="text/css" media="all" href="../../Common/Calendar/themes/system.css" title="Calendar Theme - system.css" />
    <script type="text/javascript" src="../../Common/Calendar/src/utils.js"></script>
   <script type="text/javascript" src="../../Common/Calendar/src/calendar.js"></script>
   <script type="text/javascript" src="../../Common/Calendar/src/calendar-setup.js"></script>
   <script type="text/javascript" src="../../Common/Calendar/lang/calendar-zh.js"></script>   
 </head>
<body id="pagebody" runat=server>
    <form id="form1" runat="server">
    <div style="text-align: left">
    <table width="100%" cellpadding="1" cellspacing="0" class="title-table">
            <tr class="bttn">
                <td align="left" style="width:80%;">
                    <asp:Label runat="server" ID="LabPresentLocation" Text="<%$ Resources:Site, LabPresentLocation %>"></asp:Label>：
                    <asp:Label runat="server" ID="LabNewsMore" Text="订单管理"></asp:Label>
                    <asp:TextBox ID="txt_sql" runat="server" CssClass="text-line" Width="1px" style="display:none;"></asp:TextBox></td>
               <td align="right"> 
                    
                   <asp:ImageButton   id="ImgReturn"  AlternateText="<%$ Resources:Site, ImgReturn %>"  style="cursor:hand;" OnClientClick="javascript:history.go(-1);return false;"  runat="server"  ImageUrl="../../Image/return.gif"></asp:ImageButton>   
                 </td> 
            </tr>
        </table>
    <br />
        <table class="main-table" width="100%" cellpadding="1" cellspacing="1">
            
            <tr class="line-even">
                <td style="text-align: right">
                    订单确认号：</td>
                <td style="text-align: left;">
                    &nbsp;<asp:TextBox ID="txtConfnum" runat="server" CssClass="text-line" Width="150px"></asp:TextBox>&nbsp;
                <asp:Button  ID="BtnSearch"  runat="server" CssClass="bttn" OnClientClick="javascript:SearchResv();return false;" Text="<%$ Resources:Site, ButtonSearch %>" />
                <asp:Literal runat="server" ID="ltrTip"></asp:Literal></td>
                <td style="text-align: left">
                    &nbsp;</td>
            </tr>
        </table>
        
        <div id="main">
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                    <td valign="top">
                        
                         <script language="javascript" src="../../common/loader.js" type="text/javascript"></script>
                        <div id="ResvTableDiv" runat="server">
                        </div>
                        <br />

                        <script language="javascript" type="text/javascript" defer="defer">
function ShowMod()
{

    document.getElementById("BasicInfo").style.display ='none';
	document.getElementById("CxlResvTableDiv").style.display='none';
	document.getElementById("ModResvTableDiv").style.display='block';
 }	
 function ShowCxl()
{

    document.getElementById("BasicInfo").style.display ='none';
	document.getElementById("ModResvTableDiv").style.display='none';
	document.getElementById("CxlResvTableDiv").style.display='block';
 }	
function SearchResv()
{

var confnum=document.getElementById("txtConfnum").value; 
var Mobile="";
if(confnum=="")
{
  alert("请输入订单确认号！");
  return;
}
HUBS1.HCMS.myajax.CardUserLog.GetSearchRecord(confnum,Resv2Table,null,hide_show());
var le = document.getElementById("loadErrinfo");	
le.style.display = "none";
var lt = document.getElementById("loadTimeoutinfo");	
lt.style.display = "none";
 }

function Resv2Table(request)
{
var str=request.value;
document.getElementById('ResvTableDiv').innerHTML=str;
hideloadinfo();
}


function ModResv()
{
var confnum=document.getElementById("txtConfnum").value;
var firstname=document.getElementById("FirstName").value;		   
var lastname=document.getElementById("LastName").value;
var GuestAddressLine1=document.getElementById("GuestAddressLine1").value;
var GuestPhone=document.getElementById("GuestPhone").value;
var GuestEmail=document.getElementById("GuestEmail").value;
var remark=document.getElementById("remark").value;
var le = document.getElementById("loadErrinfo");	
le.style.display = "none";
var lt = document.getElementById("loadTimeoutinfo");	
lt.style.display = "none";
HUBS1.HCMS.myajax.CardUserLog.ModRecord(confnum,firstname,lastname,GuestAddressLine1,GuestPhone,GuestEmail,remark,ModResv2Table,null,hide_show());
 }
function ModResv2Table(request)
 {
var Modstr=request.value;
document.getElementById('ModResvTableDiv').innerHTML=Modstr;
hideloadinfo();
}
function CxlResv()
{
var propertyID=document.getElementById("pid").value;
var confnum=document.getElementById("txtConfnum").value;
var le = document.getElementById("loadErrinfo");	
le.style.display = "none";
var lt = document.getElementById("loadTimeoutinfo");	
lt.style.display = "none";
HUBS1.HCMS.myajax.CardUserLog.CxlRecord(confnum,CxlResv2Table,null,hide_show());
 }
function CxlResv2Table(request)
 {
var Cxlstr=request.value;
document.getElementById("CxlResvTableDiv").innerHTML=Cxlstr;
hideloadinfo();
}

function ReSendEmail(type)
{
var confnum=document.getElementById("txtConfnum").value;
var le = document.getElementById("loadErrinfo");	
le.style.display = "none";
var lt = document.getElementById("loadTimeoutinfo");	
lt.style.display = "none";
HUBS1.HCMS.myajax.CardUserLog.ReSendEmail(confnum,type,ReSendEmail2Table,null,hide_show());
 }
function ReSendEmail2Table(request)
 {
var Mailstr=request.value;
document.getElementById("ResvTableDiv").innerHTML=Mailstr;
hideloadinfo();
}
 
                        </script>

                    </td>
                </tr>
            </table>
        </div>
    </div>
    </form>

   
</body>
</html>




